Page({
  data: {
    background: ['demo-text-1', 'demo-text-2', 'demo-text-3'],
    indicatorDots: true,
    vertical: false,
    autoplay: true,
    circular: false,
    interval: 2000,
    duration: 500,
    previousMargin: 0,
    nextMargin: 0,
    companyName:'取快递，扔垃圾，不出门'
  },
  onLoad() {
},
  changeProperty: function (e) {
    var propertyName = e.currentTarget.dataset.propertyName
    var newData = {}
    newData[propertyName] = e.detail.value
    this.setData(newData)
  },
  changeIndicatorDots: function (e) {
    this.setData({
      indicatorDots: !this.data.indicatorDots
    })
  },
  changeAutoplay: function (e) {
    this.setData({
      autoplay: !this.data.autoplay
    })
  },
  intervalChange: function (e) {
    this.setData({
      interval: e.detail.value
    })
  },
  durationChange: function (e) {
    this.setData({
      duration: e.detail.value
    })
  },
  /**
   * 查询获取焦点事件
   */
  getfocus:function(e){
  
  },
  //预约取件
  appoinmentExpress: function (e) {
    let id = e.currentTarget.dataset.id;
    wx.navigateTo({
      url: './appointment-express/appointment-express?id=' + id
    })
  },
  //帮倒垃圾
  appoinmentGarbage: function (e) {
    wx.navigateTo({
      url: './take-trash/take-trash'
    })
  },
  //包月充值
  monthPayment: function (e) {
    wx.navigateTo({
      url: './payment/payment'
    })
  },
//充值查询
queryPayment:function(e){
  wx.navigateTo({
    url: './query-payment/query-payment'
  })
},
onPullDownRefresh(){
  console.log('下拉刷新')
  setTimeout(function(){
    wx.stopPullDownRefresh();
  },3000)
}
})